package com.platform.acl.service.impl;

import com.platform.acl.entity.Permission;
import com.platform.acl.mapper.PermissionMapper;
import com.platform.acl.service.PermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author CZF
 * @since 2022-02-28
 */
@Service("permissionService")
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements PermissionService {

    @Override
    public List<Permission> getAllPermission() {
        return null;
    }

    @Override
    public List<String> selectPermissionValueByUserId(String id) {
        System.out.println("往数据库中查询权限列表并返回");
        //todo :往数据库中查询权限列表并返回

        List<String> testList = new ArrayList<>();
        testList.add("测试权限");
        return testList;
    }
}
